<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 200px;
        height: 200px;
        background-color: rebeccapurple;
        margin-bottom: 10px;
      }
    </style>
  </head>
  <body>
    <a href="#d3">d3</a>
    <div class="box" id="d1"></div>
    <div class="box" id="d2"></div>
    <div class="box" id="d3">d3</div>
    <div class="box" id="d4"></div>
    <div class="box" id="d5"></div>
  </body>
</html>
